package com.hsq.ndmall.mall.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hsq.ndmall.common.utils.PageUtils;
import com.hsq.ndmall.common.utils.Query;

import com.hsq.ndmall.mall.dao.KeywordDao;
import com.hsq.ndmall.mall.entity.KeywordEntity;
import com.hsq.ndmall.mall.service.KeywordService;


@Service("keywordService")
public class KeywordServiceImpl extends ServiceImpl<KeywordDao, KeywordEntity> implements KeywordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<KeywordEntity> page = this.page(
                new Query<KeywordEntity>().getPage(params),
                new QueryWrapper<KeywordEntity>()
        );

        return new PageUtils(page);
    }

}